<template>
  <div class="layout">
    <el-container>
      <el-aside width="auto">
        <Common-aside />
      </el-aside>
      <el-container>
          <el-header>
            <common-header />
          </el-header>
          <el-main>
            <router-view></router-view>
          </el-main>
      </el-container>
    </el-container>
  </div>

</template>

<script>
import CommonAside from '../components/CommonAside.vue'
import CommonHeader from "@/components/CommonHeader";
export default {
  name: "Main",
  data(){
    return {}
  },
  components:{
    CommonHeader,
    CommonAside,
  }
}
</script>

<style lang="scss" scoped>
.layout{
  display: flex;
  .el-header{
    padding: 0;
  }
  .el-main{
    height: 100%;
    width: 100%;
  }
}


</style>
